﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.TeamFoundation.VersionControl.Client;
using Microsoft.TeamFoundation.WorkItemTracking.Client;
using System.Windows.Media.Imaging;

namespace SmallTfs
{
    public class ChangesetX
    {
        public Changeset curent = null;

        public ChangesetX(Changeset cs)
        {
            curent = cs;
        }

        public string Source { get; set; }
        public string ParentSource { get; set; }

        public bool IsLocal
        {
            get
            {
                if (Source.ToUpper().Trim() == ParentSource.ToUpper().Trim())
                    return true;
                else
                    return false;
            }
        }

        public int ChangesetId
        {
            get
            {
                if (curent == null)
                    return 0;
                else
                    return curent.ChangesetId;
            }

        }
    }
}
